import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    currentCommentIconState_front:false,    //前台：当前的评论图标的显示状态
  },
  getters: {
  },
  mutations: {
    //检测是否存在id值(是否是blog展示界面)
    checkBlogView(state, { blogId }) {
      if (blogId !== null) {
        state.currentCommentIconState_front = true;
      }else {
        state.currentCommentIconState_front = false;
      }
    },
  },
  actions: {
  },
  modules: {
  }
})
